<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*"%>
<%@ page language="java" import="com.tangdi.production.mpapp.utils.WebPayServletUtil"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("on_back", "1");
	WebPayServletUtil payUtil = new WebPayServletUtil();
	boolean ok = payUtil.validation(request,response);
	if(!ok){
		payUtil.toLoginPage(request, response);
	}
	request.setAttribute("title","商户信息");
%>
<!DOCTYPE html>
<html lang="zh">
<base href="<%=basePath%>">
<head>
<title>商户信息</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<meta name="description" content="Common form elements and layouts" />
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

<script type="text/javascript" src="js/jquery-1.7.1.min.js"
	charset="UTF-8"></script>

<script type="text/javascript" src="js/core-1.0.js" charset="UTF-8"></script>
<script type="text/javascript" src="js/user/user-info.js" charset="UTF-8"></script>
<!-- bootstrap & fontawesome -->
<link rel="stylesheet" href="ace_v1.3/assets/css/bootstrap.css" />

<link rel="stylesheet" href="ace_v1.3/assets/css/chosen.css" />
<link rel="stylesheet" href="ace_v1.3/assets/css/font-awesome.css" />

<!-- text fonts -->
<link rel="stylesheet" href="ace_v1.3/assets/css/ace-fonts.css" />

<!-- ace styles -->
<link rel="stylesheet" href="ace_v1.3/assets/css/ace.css"
	class="ace-main-stylesheet" id="main-ace-style" />

<!--[if lte IE 9]>
			<link rel="stylesheet" href="ace_v1.3/assets/css/ace-part2.css" class="ace-main-stylesheet" />
		<![endif]-->

<!--[if lte IE 9]>
		  <link rel="stylesheet" href="ace_v1.3/assets/css/ace-ie.css" />
		<![endif]-->



<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

<!--[if lte IE 8]>
		<script src="ace_v1.3/assets/js/html5shiv.js"></script>
		<script src="ace_v1.3/assets/js/respond.js"></script>
		<![endif]-->
<jsp:include page="../plug/head-include.jsp" />
<style type="text/css">
</style>
</head>
<body class="no-skin">
	<!-- #section:basics/navbar.layout -->
	<jsp:include page="../plug/title.jsp" />

	<!-- /section:basics/navbar.layout -->
	<div class="main-container" id="main-container">

		<!-- #section:basics/sidebar -->
		<!-- /section:basics/sidebar -->
		<div class="main-content">
			<div class="main-content-inner">
				<!-- #section:basics/content.breadcrumbs -->
				<!-- /section:basics/content.breadcrumbs -->
				<div class="page-content">
					<!-- #section:settings.box -->
					<!-- <div class="page-header">
						<h1>
							Form Elements <small> <i
								class="ace-icon fa fa-angle-double-right"></i> Common form
								elements and layouts
							</small>
						</h1>
					</div>
					 -->
					<div class="col-sm-8 col-xs-12 col-sm-offset-2 list list-begin">
						<div class="left">
							<!-- <i class="ace-icon fa fa-hand-o-right icon-animated-hand-pointer blue"></i> -->
							姓名
						</div>
						<div class="right">
							<span class="user-name" valueOf="{custName}">
								
							</span>
						</div>
					</div>
					
					<div class="col-sm-8 col-xs-12 col-sm-offset-2 list list-end">
						<div class="left">
							<!-- <i class="ace-icon fa fa-hand-o-right icon-animated-hand-pointer blue"></i> -->
							账号
						</div>
						<div class="right">
							<span class="user-phone" valueOf="{custLogin}">
								
							</span>
						</div>
					</div>
					
					<div class="col-sm-8 col-xs-12 col-sm-offset-2 list list-begin">
						<div class="left">
							<!-- <i class="ace-icon fa fa-hand-o-right icon-animated-hand-pointer blue"></i> -->
							绑定银行卡
						</div>
						<div class="right">
							<span class="" valueOf="{cardBundingStatus}" init-format="doCardBundingStatus('{value}')">
								
							</span>
						</div>
					</div>
					
					<div class="col-sm-8 col-xs-12 col-sm-offset-2 list list-end">
						<div class="left">
							<!-- <i class="ace-icon fa fa-hand-o-right icon-animated-hand-pointer blue"></i> -->
							实名认证
						</div>
						<div class="right">
							<span class="" valueOf="{custStatus}" init-format="doUsrStatus('{value}')">
								
							</span>
						</div>
					</div>
					
					
					<!-- /.page-header -->
				</div>
				<!-- /.page-content -->
			</div>
		</div>
		<!-- /.main-content -->

		<!-- /.main-container -->
	</div>
	
	<script type="text/javascript">
		getUserInfo(function(json){
			fillTable($(".main-content"),json);
		});
		
		function doCard(cardNo){
			if(cardNo && cardNo.length > 10){
				return cardNo.substring(0, 6) + "****" + cardNo.substring(cardNo.length - 4);
			}
			return "";
		}
		////实名认证 认证状态 0：未认证 1：审核中 2：已通过  3：未通过4:一审通过
		function doUsrStatus(status){
			if(status == "0"){
				return "未认证";
			}else if(status == "1" || status == "4"){
				return "审核中";
			}else if(status == "2"){
				return "已通过";
			}else if(status == "3"){
				return "未通过";
			}
			return "未认证";
		}
		
		function doCardBundingStatus(value){
			if(value == '0'){
				return "未绑定";
			}else if(value == '1'){
				return "未审核";
			}else if(value == '2'){
				return "已绑定";
			}else if(value == '3'){
				return "未通过";
			}
		}
		
	</script>
	 <!-- <script type="text/javascript" src="js/webpay/dial.js" charset="UTF-8"></script>
 -->	<!-- basic scripts -->
</body>
</html>